package com.sq.partner.manager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.IGatewayChannelUserDao;
import com.sq.partner.manager.mybatis.model.GatewayChannelUser;

/**
 * 
 * @author Kang Zhiqiang
 *
 */
@Repository
public class GatewayChannelUserDaoImpl extends BaseDaoImpl implements
		IGatewayChannelUserDao {

	@Override
	public List<GatewayChannelUser> queryByChannelUser(
			GatewayChannelUser channelUser) throws Exception {

		List<GatewayChannelUser> channelUserList = this.queryList("queryGatewayChannelUserByMap", channelUser);
		return channelUserList;
	}

	@Override
	public void delByChannelUser(GatewayChannelUser channelUser)
			throws Exception {
		this.delete("delGatewayChannelUser", channelUser);
	}

	@Override
	public void save(GatewayChannelUser channelUser) throws Exception {
		this.add("insertGatewayChannelUser", channelUser);
	}

}
